package cn.tedu.cart.api;

import com.jt.common.pojo.Cart2;
import com.jt.common.vo.SysResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("cart-service")
public interface CartApi {
    @RequestMapping(value = "/cart/manage/query",method = RequestMethod.GET)
    public List<Cart2> queryMyCarts(@RequestParam("userId") String userId);

    @RequestMapping(value = "/cart/manage/delete",method = RequestMethod.GET)
    public SysResult deleteCart(@RequestBody Cart2 cart);
}
